
#include"Slist.h"

void test()
{
	SListNode* plist = NULL;

	SListPushBack(&plist, 1);
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPushBack(&plist, 4);

	/*SListPushFront(&plist, 5);
	SListPushFront(&plist, 6);
	SListPushFront(&plist, 7);*/

	/*SListPopBack(&plist);
	SListPopBack(&plist);
	SListPopBack(&plist);
	SListPopBack(&plist);*/

	/*SListPopFront(&plist);
	SListPopFront(&plist);
	SListPopFront(&plist);*/

	/*SListNode* Find =  SListFind(plist, 5);
	if (Find == NULL)
		printf("No Find!\n");
	else
		printf("Find!\n");*/

	//SListInsertAfter(plist, 8);

	//SLTInsert(&plist, plist, 10);

	SLTErase(&plist, plist);

	//SListEraseAfter(plist);

	SListPrint(plist);

	SLTDestroy(&plist);
}

int main() {
	test();
	return 0;
}